#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<iostream>
using namespace std;
template<typename T>
void Swap(T& right, T& left)
{
	T temp = left;
	left = right;
	right = temp;
}
int main()
{
	int a = 1, b = 2;
	double c = 1.1, d = 2.1;
	Swap(a, b);
    cout << a << "  " << b << endl;
    Swap(c, d);
    cout << c << "  " << d << endl;
	//Swap<int>(c, b);
	return 0;
}
